package com.ruoyi.community.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

public class OwnerMyRecord extends BaseEntity{
    private static final long serialVersionUID = 1L;
    // 用户id，时间，类型（投票0，活动报名1，活动参与2），投票或活动id，投票或活动名

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 记录创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date time;

    /** 记录类型 */
    @Excel(name = "用户id")
    private Integer type;

    /** 活动id */
    @Excel(name = "活动id")
    private String recordActivityId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Date getTime() {
        return time;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getType() {
        return type;
    }

    public void setRecordActivityId(String recordActivityId) {
        this.recordActivityId = recordActivityId;
    }

    public String getRecordActivityId() {
        return recordActivityId;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    @Override
    public String toString() {
        return "OwnerMyRecord{" +
                "userId=" + userId +
                ", time=" + time +
                ", type=" + type +
                ", recordActivityId='" + recordActivityId + '\'' +
                ", title='" + title + '\'' +
                '}';
    }
}
